import java.util.Arrays;

/**
 * @author admin
 * 88. 合并两个有序数组
 * // 先将数组2的值赋给数组1，再排序
 */
public class LeeCode88 {

    public static void main(String[] args) {
        int []num1 = new int[]{1,2,3,0,0,0};
        int m = 3;
        int []num2 = new int[]{2,5,6};
        int n = 3;

        for(int i = 0;i<n;i++){
            num1[m] = num2[i];
            m++;
        }
        Arrays.sort(num1);
        for (int i : num1) {
            System.out.println(i);
        }
    }
}
